﻿@model LoginModel

@{ViewBag.Title = "Log in";}

<section>
    <div class="grid_6">
        @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>Login</legend>
                <div class="k-block">
                    <div class="k-header k-state-selected">Login.</div>
                    <div class="k-block k-info-colored">Use your email address and password to login or @Html.ActionLink("Register", "Index", "Register") if you don't have an account.</div>
                    <div>
                        @Html.LabelFor(m => m.UserName)
                    </div>
                    <div>
                        @Html.TextBoxFor(m => m.UserName, new { @class = "k-textbox"})
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                    <div>
                        @Html.LabelFor(m => m.Password)
                    </div>
                    <div>
                        @Html.PasswordFor(m => m.Password, new { @class = "k-textbox"})
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    <div>
                        @Html.CheckBoxFor(m => m.RememberMe)
                        @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
                    </div>
            
                    <div>
                        <button class="k-button" type="submit">
                            <span class="k-icon k-i-tick"></span>
                            <span>Login</span>
                        </button>
                    </div>
                </div>
            </fieldset>
        }
    </div>
</section>